import { fetchData,postData,delData } from '../../api/index';

export default function(){
    let user_url = "/api/useradd"
    let postLogin = <T>(login_info:T) => {
        try{
            const res = postData(user_url,login_info)
            console.log(res)    
        } catch (error) {

        }
    }
    return { postLogin }
}